#include <iostream>
#include <stdio.h>
#include <cmath>

// 统计字符串中字母、数字、空格数量
void count_chars(char *str)
{
    int letter_count = 0;
    int digit_count = 0;
    int space_count = 0;
    while(*str != '\0')
    {
        if(isalpha(*str))
        {
            letter_count++;
        }
        else if(isdigit(*str))
        {
            digit_count++;
        }
        else if(isspace(*str))
        {
            space_count++;
        }
        str++;
    }
    std::cout << "字母数量:" << letter_count << std::endl;
    std::cout << "数字数量:" << digit_count << std::endl;
    std::cout << "空格数量:" << space_count << std::endl;
}


int main()
{
    char str[100];
    std::cin.getline(str, 100);
    count_chars(str);

    return 0;
}